<div id="products"><!--start products-->
	<div class="box">
		<div class="box_left">
			<div class="box_right"><a href="#">Thông tin rao bán</a></div>
		</div>
	</div>
    <?php if($land): ?>
	<div id="bg_products">
		<p><strong>Thông tin liên hệ: <?php echo $land->contact_name .' - '. $land->contact_phone; ?></strong></p>
		<p><strong>Hướng: </strong><?php if(empty($land->direction)){echo "Bất kỳ";}else{echo __($land->direction);} ?></p>
		<p><strong>Loại giao dịch: </strong><?php echo __($land->transaction_type); ?></p>
        <p><strong>Giá: </strong><?php echo number_format((float)$land->price,0,',','.'); ?><em> ₫</em></p>
        <p><strong>Loại bất động sản: </strong><?php  echo $land->Type->name; ?></p>
        <p><strong>Diện tích: </strong><?php echo $land->area; ?><em> m&sup2;</em></p>
		<br/>
        <p><strong><u>Thêm thông tin:</u></strong></p>
        <div>
		<?php if($land): ?>
			<?php echo html_entity_decode($land->description); ?>
		<?php else: ?>
			Dự án bạn yêu cầu không được tìm thấy
		<?php endif; ?>	
        </div>
	</div>
    <?php endif; ?>
    <div class="clear"></div>
    
    
    <?php if($user_land): ?>
    
    <div class="box">
        <div class="box_left">
            <div class="box_right"><a href="#">Tin cùng người đăng</a></div>
        </div>
    </div>
    <div id="bg_products">
        <ul>
            <?php foreach($user_land as $land): ?>
            <li>
                <span class="img_products"><a href="#"><img width="110px" height="90px" src="<?php echo Tools::get_land_image($land->image); ?>"></a></span>
                <span class="text_project" style="width: 555px">
                    <a href="<?php echo Route::url('default',array('controller' => 'land','action' => 'detail', 'id' => $land->id))?>"><?php echo $land->title; ?></a>
                    <p><?php echo $land->short_description; ?></p>
                    <span class="details"><a href="<?php echo Route::url('default',array('controller' => 'land','action' => 'detail', 'id' => $land->id))?>">[Chi tiết]</a></span>
                </span>
                <span class="underline_project"><!----></span>
            </li>
            <?php endforeach; ?>
        </ul>
        <div class="clear"></div>
        <div class="more" style="text-align: right; padding-top: 5px;">
            <?php if($user): ?>
            <a href="<?php echo Route::url('default',array('controller' => 'land','action' => 'by','id' => $user->username)) ?>" style="color: red">Xem thêm</a>
            <?php endif; ?>
        </div>
    </div>
    <?php endif; ?>
    
    <?php if($related_land): ?>
    <div class="clear"></div>
    
    <div class="box">
        <div class="box_left">
            <div class="box_right"><a href="#">Tin liên quan</a></div>
        </div>
    </div>
    <div id="bg_products">
        <ul>
            <?php foreach($related_land as $land): ?>
            <li>
                <span class="img_products"><a href="#"><img width="110px" height="90px" src="<?php echo Tools::get_land_image($land->image); ?>"></a></span>
                <span class="text_project" style="width: 555px">
                    <a href="<?php echo Route::url('default',array('controller' => 'land','action' => 'detail', 'id' => $land->id))?>"><?php echo $land->title; ?></a>
                    <p><?php echo $land->short_description; ?></p>
                    <span class="details"><a href="<?php echo Route::url('default',array('controller' => 'land','action' => 'detail', 'id' => $land->id))?>">[Chi tiết]</a></span>
                </span>
                <span class="underline_project"><!----></span>
            </li>
            <?php endforeach; ?>
        </ul>
        <div class="clear"></div>
        <div class="more" style="text-align: right; padding-top: 5px;">
            <a href="#" style="color: red">Xem thêm</a>
        </div>
    </div>
    <?php endif; ?>
</div>
